#include "StringPiece.h"
#include <string.h>

bool operator<(const StringPiece& a, const StringPiece& b) {
    int na = a.length(), nb = b.length();
    int res = strncmp(a.begin(), b.begin(), na < nb ? na : nb);
    return (res == 0) ? (na < nb) : res;
}
